-- GENERATED SPELL FOR [Summoned Cabal Acolyte] --


function spell0_19208(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(12039,pUnit)
pUnit:RegisterEvent('Sorts_19208', 3000, 1)
end

function spell1_19208(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(38209,pUnit)
pUnit:RegisterEvent('Sorts_19208', 3000, 1)
end

function spell2_19208(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(25058,pUnit)
pUnit:RegisterEvent('Sorts_19208', 15000, 1)
end

function spell3_19208(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(38210,pUnit)
pUnit:RegisterEvent('Sorts_19208', 15000, 1)
end

function Sorts_19208(pUnit, Event)
local choix_sorts_19208 = math.random(0, 3)
if choix_sorts_19208 == 0 then
pUnit:RegisterEvent('spell0_19208', 1, 1)
end
if choix_sorts_19208 == 1 then
pUnit:RegisterEvent('spell1_19208', 1, 1)
end
if choix_sorts_19208 == 2 then
pUnit:RegisterEvent('spell2_19208', 1, 1)
end
if choix_sorts_19208 == 3 then
pUnit:RegisterEvent('spell3_19208', 1, 1)
end
end

function mob19208_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19208', math.random(1500, 3000), 1)
end

function mob19208_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19208_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19208_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19208, 1, 'mob19208_Action')
RegisterUnitEvent(19208, 2, 'mob19208_Leave')
RegisterUnitEvent(19208, 3, 'mob19208_Kill')
RegisterUnitEvent(19208, 4, 'mob19208_Die')
